import request from '@/utils/request'

export function extract_file(file) {
    let formData = new FormData();
    formData.append('file', file);
    return request({
        url: '/face/test/extract-file',
        method: 'post',
        headers: {"Content-Type": "multipart/form-data; charset=utf-8"},
        contentType: false,
        processData: false,
        withCredentials: false,
        data: formData
    })
}

export function extract_base64(base64) {
    return request({
        url: '/face/test/extract-base64',
        method: 'post',
        data: base64
    })
}

export function compare_base64(base64) {
    return request({
        url: '/face/test/compare-base64',
        method: 'post',
        data: base64
    })
}

